package com.atguigu06.polymorphism.exer1;

import java.util.Set;

/**
 * ClassName: Circle
 * Package: com.atguigu06.polymorphism.exer1
 * Description:
 *
 * @Author xiao_qi
 * @Create 2024/9/2 10:48
 * @Version 1.0
 */
public class Circle extends GeometricObject {
    private double radius;

   public double getRadius(){return radius;}
    public void setRadius(double radius){this.radius = radius;}
    public Circle(String color, double weight, double radius) {
        super(color, weight);
        this.radius = radius;
    }
    public double findArea(){
        return 3.14*radius*radius;
    }
}
